package com.victor.entity;

import java.io.Serializable;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 	电商订单
 * @qinyuquan 
 *
 */
@Entity
@Table(name = "jingqubusiness_order")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class JingqubusinessOrder implements Serializable{
	
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY) // 主键类型--自动递增生成
	@Column(name = "id", unique = true, nullable = false, length = 11)
	private Integer id;

	@Column(name = "o_name", length = 50)
	private String o_name;//订单名称

	@Column(name = "o_price", length = 50)
	private String o_price;//订单价格
	
	@Column(name = "o_time", length = 50)
	private String o_time;//下单时间

	@Column(name = "ordernumber", length = 50)
	private String ordernumber;//订单编号
	
	@Column(name = "state", length = 50)
	private String state;//1新订单，2待出库，3待收货，4已收货，5待评价，6已评价，7待退款，8已退款
	
	@Column(name = "uid", length = 50)
	private String uid;//下单用户id
	
	@Column(name = "unickname", length = 50)
	private String unickname;//下单用户昵称
	
	@Column(name = "aid", length = 50)
	private String aid;//地址id

	@Transient
	private Address address;//收件人信息
	
	@Transient
	private Express express;//快递信息

	@Transient
	private List<JingqubusinessOrderShop> jingqubusinessOrderShops;//购买的商品列表
}
